<?php
/*
	本插件：$this->model('model')->方法名();
	其他地方调用：model('jy_yxw/model')->方法名();
*/
namespace jy_yxw;
defined('BY_JYA') or exit('error');
class menus extends \plugin{
	/*
		店长
	*/
	public function juese1_menus(){
		$menus0=array(
			0=>array('title'=>'门店概况','fa'=>'icon-dianpu','url'=>'jy_yxw/store.index/','child'=>array(
				array('title'=>'门店概况','child'=>array(
					array('url'=>'jy_yxw/store.index/','title'=>'门店概况'),
					array('url'=>'jy_yxw/counts.fromdata//juese=6','title'=>'渠道转化率'),
				)),
			)),
			1=>array('title'=>'财务数据','fa'=>'icon-zhifeiji','url'=>'jy_yxw/caiwu.in/','child'=>array(
				array('title'=>'财务数据','child'=>array(
					array('url'=>'jy_yxw/caiwu.in/','title'=>'收入明细'),
					array('url'=>'jy_yxw/juese14.fenfee_log//status=0','title'=>'待收收入'),
				)),
			)),
			7=>array('title'=>'审批管理','fa'=>'icon-zhifeiji','url'=>'jy_yxw/xiaoshou.tuifee//status=0','child'=>array(
				array('title'=>'审批管理','child'=>array(
					array('url'=>'jy_yxw/xiaoshou.tuifee//status=0','title'=>'待审批'),
					array('url'=>'jy_yxw/xiaoshou.tuifee//status=1','title'=>'已审批'),
					array('url'=>'jy_yxw/xiaoshou.tuifee//status=2','title'=>'审批不通过'),
					array('url'=>'jy_yxw/xiaoshou.tuifee//status=5','title'=>'退费异常'),
				)),
			)),
		);
		if($_SESSION['store_type']==3 && !$_SESSION['storeids']){
			$menus0[1]['child'][0]['child'][]=array('url'=>'jy_yxw/countsall.inallstore/list2/','title'=>'门店排名表');
			unset($menus0[3]);
		}else{
			$menus0[1]['child'][0]['child'][]=array('url'=>'jy_yxw/countsall.inallstore/list/','title'=>'门店排名表');
		}
		$menus1=array(
			array('title'=>'售后部','fa'=>'icon-xuexi1','url'=>'jy_yxw/shouhou.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/shouhou.index/','title'=>'概况'),
					array('url'=>'jy_yxw/shouhou.in//type=0','title'=>'售后成本收入'),
					array('url'=>'jy_yxw/shouhou.in//type=1','title'=>'口碑成交收入'),
				)),
				array('title'=>'待分售后用户','child'=>array(
					array('url'=>'jy_yxw/shouhou.member/','title'=>'待分售后用户'),
				)),
			)),
			array('title'=>'售后群管理','fa'=>'icon-qiehuan','url'=>'jy_yxw/shouhou.class//status=0','child'=>array(
				array('title'=>'售后群列表','child'=>array(
					array('url'=>'jy_yxw/shouhou.class//status=0','title'=>'未启用'),
					array('url'=>'jy_yxw/shouhou.class//status=1','title'=>'使用中'),
					array('url'=>'jy_yxw/shouhou.class2/','title'=>'待反馈'),
					array('url'=>'jy_yxw/shouhou.class//status=3','title'=>'已完结'),
				)),
			)),
			array('title'=>'口碑情况','fa'=>'icon-pinpai','url'=>'jy_yxw/shouhou.koubei/','child'=>array(
				array('title'=>'口碑情况','show'=>true,'child'=>array(
					array('url'=>'jy_yxw/shouhou.koubei/','title'=>'口碑意向量'),
					array('url'=>'jy_yxw/shouhou.koubeibao/','title'=>'口碑成交'),
					array('url'=>'jy_yxw/shouhou.koubeirank/','title'=>'售后口碑排行'),
					array('url'=>'jy_yxw/shouhou.koubeirank2/','title'=>'员工口碑排行'),
				)),
			)),
			array('title'=>'问卷管理','fa'=>'icon-quanbudingdan','url'=>'jy_yxw/shouhou.diaoca_list/','child'=>array(
				array('title'=>'问卷管理','show'=>true,'child'=>array(
					array('url'=>'jy_yxw/shouhou.diaoca_list/','title'=>'问卷列表'),
					array('url'=>'jy_yxw/shouhou.diaoca_tiku//tiku_type=1','title'=>'售后题库列表'),
					array('url'=>'jy_yxw/shouhou.diaoca_tiku//tiku_type=2','title'=>'售后主管题库列表'),
				)),
			)),
			array('title'=>'门店员工','fa'=>'icon-licai','url'=>'jy_yxw/worker.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/worker.index/','title'=>'概况'),
				)),
				array('title'=>'管理部','child'=>array(
					array('url'=>'jy_yxw/worker.list//juese=2','title'=>'主管列表'),
				)),
				array('title'=>'售后部','child'=>array(
					array('url'=>'jy_yxw/worker.list//juese=9','title'=>'售后助理员'),
					array('url'=>'jy_yxw/worker.list//juese=10','title'=>'售后技术员'),
					array('url'=>'jy_yxw/worker.list//juese=11','title'=>'售后主管'),
				)),
				array('title'=>'反馈部','child'=>array(
					array('url'=>'jy_yxw/worker.list//juese=12','title'=>'反馈员'),
				)),
			)),
			array('title'=>'审批事项','fa'=>'icon-licai','url'=>'jy_yxw/store.yonghu_log/','child'=>array(
				array('title'=>'售后审批','child'=>array(
					array('url'=>'jy_yxw/store.yonghu_log/','title'=>'售后审批'),
				)),
			)),
			
		);
		$menus3=array(
			array('title'=>'门店概况','fa'=>'icon-dianpu','url'=>'jy_yxw/store.index/','child'=>array(
				array('title'=>'门店概况','child'=>array(
					array('url'=>'jy_yxw/store.index/','title'=>'门店概况'),
				)),
			)),
			array('title'=>'门店收入','fa'=>'icon-zhifeiji','url'=>'jy_yxw/caiwu.in/','child'=>array(
				array('title'=>'收支明细','child'=>array(
					array('url'=>'jy_yxw/caiwu.in/','title'=>'收入'),
					array('url'=>'jy_yxw/caiwu.out/','title'=>'支出'),
				)),
				array('title'=>'门店收支','child'=>array(
					array('url'=>'jy_yxw/store.inall/','title'=>'门店总业绩'),
					array('url'=>'jy_yxw/store.inday/','title'=>'门店日收入'),
					array('url'=>'jy_yxw/store.inmonth/','title'=>'门店月收入'),
				)),
			)),
			array('title'=>'门店客户池','fa'=>'icon-licai','url'=>'jy_yxw/member.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/member.index/','title'=>'概况'),
				)),
				array('title'=>'按级别','child'=>array(
					array('url'=>'jy_yxw/member.list//jibie_type=all','title'=>'全量客户'),
					array('url'=>'jy_yxw/member.list//jibie_type=0','title'=>'待归类'),
					array('url'=>'jy_yxw/member.list//jibie_type=1','title'=>'A类客户'),
					array('url'=>'jy_yxw/member.list//jibie_type=2','title'=>'B类客户'),
					array('url'=>'jy_yxw/member.list//jibie_type=3','title'=>'C类客户'),
					array('url'=>'jy_yxw/member.list//jibie_type=4','title'=>'D类客户'),
					array('url'=>'jy_yxw/member.list//jibie_type=5','title'=>'无效客户'),
				)),
				array('title'=>'按渠道','child'=>array(
					array('url'=>'jy_yxw/member.fromlist//from_type=1','title'=>'线下渠道'),
					array('url'=>'jy_yxw/member.fromlist//from_type=2','title'=>'网络渠道'),
				)),
				array('title'=>'按进度','child'=>array(
					array('url'=>'jy_yxw/member.jindulist//status=0','title'=>'初入客户'),
					array('url'=>'jy_yxw/member.jindulist//status=1','title'=>'待电客'),
					array('url'=>'jy_yxw/member.jindulist//status=2','title'=>'跟进中'),
					array('url'=>'jy_yxw/member.jindulist//status=3','title'=>'准意向'),
					array('url'=>'jy_yxw/member.jindulist//status=4','title'=>'已意向'),
					array('url'=>'jy_yxw/member.jindulist//status=5','title'=>'待体验'),
					array('url'=>'jy_yxw/member.jindulist//status=6','title'=>'已体验'),
					array('url'=>'jy_yxw/member.jindulist//status=7','title'=>'待试用'),
					array('url'=>'jy_yxw/member.jindulist//status=8','title'=>'已试用'),
				)),
			)),
			array('title'=>'推广部','fa'=>'icon-zhifeiji','url'=>'jy_yxw/counts.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/counts.index/','title'=>'概况'),
					array('url'=>'jy_yxw/counts.data5/','title'=>'电销员数据'),
					array('url'=>'jy_yxw/counts.from1data/','title'=>'线下渠道数据'),
					array('url'=>'jy_yxw/counts.from2data/','title'=>'网络渠道数据'),
				)),
				array('title'=>'客户录入','child'=>array(
					array('url'=>'jy_yxw/counts.add/','title'=>'客户录入'),
				)),
				array('title'=>'客户分配','child'=>array(
					array('url'=>'jy_yxw/counts.list//status=0','title'=>'待分配客户'),
					array('url'=>'jy_yxw/counts.list//status=all','title'=>'我的客户'),
				)),
			)),
			array('title'=>'销售部','fa'=>'icon-zhifeiji','url'=>'jy_yxw/xiaoshou.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/xiaoshou.index/','title'=>'概况'),
				)),
				array('title'=>'电客','child'=>array(
					array('url'=>'jy_yxw/xiaoshou.list//status=1','title'=>'待电客客户'),
					array('url'=>'jy_yxw/xiaoshou.list//status=-1','title'=>'无效客户'),
				)),
				array('title'=>'销售员','child'=>array(
					array('url'=>'jy_yxw/xiaoshou.list//status=3','title'=>'准意向'),
					array('url'=>'jy_yxw/xiaoshou.list//status=4','title'=>'已意向'),
					array('url'=>'jy_yxw/xiaoshou.list//status=2','title'=>'跟进中'),
					array('url'=>'jy_yxw/xiaoshou.list//status=-1','title'=>'无效客户'),
				)),
				array('title'=>'体验','child'=>array(
					array('url'=>'jy_yxw/xiaoshou.list//status=5','title'=>'待体验'),
					array('url'=>'jy_yxw/xiaoshou.list//status=6','title'=>'已体验'),
				)),
				array('title'=>'试用','child'=>array(
					array('url'=>'jy_yxw/xiaoshou.list//status=7','title'=>'待试用'),
					array('url'=>'jy_yxw/xiaoshou.list//status=8','title'=>'已试用'),
				)),
			)),
			array('title'=>'售后部','fa'=>'icon-xuexi1','url'=>'jy_yxw/shouhou.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/shouhou.index/','title'=>'概况'),
				)),
				array('title'=>'待分售后用户','child'=>array(
					array('url'=>'jy_yxw/shouhou.member/','title'=>'待分售后用户'),
				)),
			)),
			array('title'=>'售后群管理','fa'=>'icon-qiehuan','url'=>'jy_yxw/shouhou.class//status=0','child'=>array(
				array('title'=>'售后群列表','child'=>array(
					array('url'=>'jy_yxw/shouhou.class//status=0','title'=>'试用'),
					array('url'=>'jy_yxw/shouhou.class//status=1','title'=>'使用中'),
					array('url'=>'jy_yxw/shouhou.class2/','title'=>'待反馈'),
					array('url'=>'jy_yxw/shouhou.class//status=3','title'=>'已完结'),
				)),
			)),
			array('title'=>'口碑情况','fa'=>'icon-pinpai','url'=>'jy_yxw/shouhou.koubei/','child'=>array(
				array('title'=>'口碑情况','show'=>true,'child'=>array(
					array('url'=>'jy_yxw/shouhou.koubei/','title'=>'口碑意向量'),
					array('url'=>'jy_yxw/shouhou.koubeibao/','title'=>'口碑成交'),
					array('url'=>'jy_yxw/shouhou.koubeirank/','title'=>'售后口碑排行'),
					array('url'=>'jy_yxw/shouhou.koubeirank2/','title'=>'员工口碑排行'),
				)),
			)),
			array('title'=>'问卷管理','fa'=>'icon-quanbudingdan','url'=>'jy_yxw/shouhou.diaoca_list/','child'=>array(
				array('title'=>'问卷管理','show'=>true,'child'=>array(
					array('url'=>'jy_yxw/shouhou.diaoca_list/','title'=>'问卷列表'),
					array('url'=>'jy_yxw/shouhou.diaoca_tiku//tiku_type=1','title'=>'售后题库列表'),
					array('url'=>'jy_yxw/shouhou.diaoca_tiku//tiku_type=2','title'=>'售后主管题库列表'),
				)),
			)),
			array('title'=>'门店员工','fa'=>'icon-paihao0','url'=>'jy_yxw/worker.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/worker.index/','title'=>'概况'),
				)),
				array('title'=>'管理部','child'=>array(
					array('url'=>'jy_yxw/worker.list//juese=2','title'=>'主管列表'),
				)),
				array('title'=>'推广部','child'=>array(
					array('url'=>'jy_yxw/worker.list//juese=3','title'=>'网络专员'),
					array('url'=>'jy_yxw/worker.list//juese=4','title'=>'前台员'),
				)),
				array('title'=>'销售部','child'=>array(
					array('url'=>'jy_yxw/worker.list//juese=5','title'=>'电客员'),
					array('url'=>'jy_yxw/worker.list//juese=6','title'=>'销售员员'),
					array('url'=>'jy_yxw/worker.list//juese=7','title'=>'体验员'),
					array('url'=>'jy_yxw/worker.list//juese=8','title'=>'试用员'),
				)),
				array('title'=>'售后部','child'=>array(
					array('url'=>'jy_yxw/worker.list//juese=9','title'=>'售后助理员'),
					array('url'=>'jy_yxw/worker.list//juese=10','title'=>'售后技术员'),
					array('url'=>'jy_yxw/worker.list//juese=11','title'=>'售后主管'),
				)),
				array('title'=>'反馈部','child'=>array(
					array('url'=>'jy_yxw/worker.list//juese=12','title'=>'反馈员'),
				)),
			)),
			array('title'=>'审批事项','fa'=>'icon-licai','url'=>'jy_yxw/store.yonghu_log/','child'=>array(
				array('title'=>'售后审批','child'=>array(
					array('url'=>'jy_yxw/store.yonghu_log/','title'=>'售后审批'),
				)),
			)),
			
		);
		if($_SESSION['store_type']==2){
			return $menus0;
		}elseif($_SESSION['store_type']==0){
			return $menus0;
		}elseif($_SESSION['store_type']==1){
			return $menus1;
		}elseif($_SESSION['store_type']==3){
			return $menus0;
		}
	}
	/*
		主管
	*/
	public function juese2_menus(){
		$menus =$this->juese1_menus();
		return $menus;
	}
	/*
		网络专员
	*/
	public function juese3_menus(){
		$menus =array(
			array('title'=>'前台数据','fa'=>'icon-zhifeiji','url'=>'jy_yxw/juese3.index/','child'=>array(
				array('title'=>'概况','child'=>array(
						array('url'=>'jy_yxw/juese3.index/','title'=>'概况'),
						array('url'=>'jy_yxw/counts.fromdata//juese=4','title'=>'渠道转化率'),
						array('url'=>'jy_yxw/counts.juese5data/','title'=>'电客转化率'),
				)),
				array('title'=>'客户录入','child'=>array(
						array('url'=>'jy_yxw/juese3.add/','title'=>'客户录入'),
				)),
				array('title'=>'客户分配','child'=>array(
						array('url'=>'jy_yxw/juese3.list//status=all','title'=>'我的全部客户'),
						array('url'=>'jy_yxw/juese3.list//from_type=1','title'=>'待分配客户'),
						array('url'=>'jy_yxw/juese3.list//status=isall','title'=>'已分配客户'),
						array('url'=>'jy_yxw/juese3.list//status=3','title'=>'准意向客户'),
						array('url'=>'jy_yxw/juese3.list//status=shangmen','title'=>'已意向客户'),
				)),
			)),
		);
		return $menus;
	}
	/*
		前台员
	*/
	public function juese4_menus(){
		$menus =$this->juese3_menus();
		return $menus;
	}
	/*
		电客员
	*/
	public function juese5_menus(){
		$menus =array(
			array('title'=>'电客数据','fa'=>'icon-zhifeiji','url'=>'jy_yxw/juese5.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/juese5.index/','title'=>'概况'),
					array('url'=>'jy_yxw/counts.fromdata//juese=5','title'=>'渠道转化率'),
				)),
				array('title'=>'我的客户','child'=>array(
					array('url'=>'jy_yxw/juese5.list//status=all','title'=>'全部客户'),
					array('url'=>'jy_yxw/juese5.list2//status=1','title'=>'待电客客户'),
					array('url'=>'jy_yxw/juese5.list2//status=2','title'=>'跟进中'),
					array('url'=>'jy_yxw/juese5.list2//status=30','title'=>'待回访客户'),
					array('url'=>'jy_yxw/juese5.list2//status=31','title'=>'联系失败'),
					array('url'=>'jy_yxw/juese5.list//status=-1','title'=>'无效客户'),
				)),
				array('title'=>'公海客户','child'=>array(
					array('url'=>'jy_yxw/juese5.haidata/','title'=>'公海客户'),
				)),
			)),
		);
		$iszhuguan=$this->model('model')->iszhuguan(5);
		if($iszhuguan){
			$menus[0]['child'][0]['child'][]=array('url'=>'jy_yxw/counts.juese5data/','title'=>'本店意向率');
		}
		return $menus;
	}
	/*
		销售员员
	*/
	public function juese6_menus(){
		$menus =array(
			array('title'=>'销售数据','fa'=>'icon-zhifeiji','url'=>'jy_yxw/juese6.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/juese6.index/','title'=>'概况'),
					array('url'=>'jy_yxw/counts.juese6from//isworker=1','title'=>'渠道转化率'),
				)),
				array('title'=>'我的客户','child'=>array(
					array('url'=>'jy_yxw/juese6.list//status=all','title'=>'全部客户'),
					array('url'=>'jy_yxw/juese6.helist//status=all','title'=>'合作客户'),
					array('url'=>'jy_yxw/juese6.list//status=3','title'=>'准意向'),
					array('url'=>'jy_yxw/juese6.list//status=4','title'=>'已意向'),
					array('url'=>'jy_yxw/juese6.list//status=2','title'=>'跟进中'),
					array('url'=>'jy_yxw/juese6.list//status=huifang','title'=>'待回访'),
					array('url'=>'jy_yxw/juese6.list//status=10','title'=>'已成交'),
					array('url'=>'jy_yxw/juese6.list//status=101','title'=>'退成交'),
				)),
				array('title'=>'数据对账','child'=>array(
					array('url'=>'jy_yxw/counts.buygoods/list/','title'=>'成交明细'),
					array('url'=>'jy_yxw/counts.buygoods/list2/','title'=>'定金明细'),
					array('url'=>'jy_yxw/counts.buygoods/list4/','title'=>'退费明细'),
					array('url'=>'jy_yxw/counts.member/shmen/','title'=>'意向明细'),
				)),
				array('title'=>'客户录入','child'=>array(
					array('url'=>'jy_yxw/juese3.add/','title'=>'客户录入'),
				)),
				array('title'=>'公海','child'=>array(
					array('url'=>'jy_yxw/juese6.haidata/','title'=>'公海'),
				)),
			)),
			
		);
		if($_SESSION['store_type']!=3){
			unset($menus[0]['child'][1]['child'][1]);
			unset($menus[0]['child'][1]['child'][2]);
		}
		$iszhuguan=$this->model('model')->iszhuguan(6);
		if($iszhuguan){
			$menus[0]['child'][0]['child'][]=array('url'=>'jy_yxw/counts.juese6data/','title'=>'本店转化率');
		}
		return $menus;
	}
	/*
		体验员
	*/
	public function juese7_menus(){
		$menus =array(
			array('title'=>'体验数据','fa'=>'icon-zhifeiji','url'=>'jy_yxw/juese7.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/juese7.index/','title'=>'概况'),
					array('url'=>'jy_yxw/counts.data6to7/','title'=>'销售员体验率'),
				)),
				array('title'=>'体验/体用','child'=>array(
					array('url'=>'jy_yxw/juese7.list//status=all','title'=>'全部客户'),
					array('url'=>'jy_yxw/juese7.list2//status=5','title'=>'待体验'),
					array('url'=>'jy_yxw/juese7.list2//status=40','title'=>'体验中'),
					array('url'=>'jy_yxw/juese7.list//status=t5liu_time','title'=>'体验流失'),
					array('url'=>'jy_yxw/juese7.list//status=t5wu_time','title'=>'无效体验'),
					array('url'=>'jy_yxw/juese7.list//status=6','title'=>'已体验'),
					array('url'=>'jy_yxw/juese7.list2//status=42','title'=>'体用中'),
					array('url'=>'jy_yxw/juese7.list//status=t6liu_time','title'=>'体用流失'),
					array('url'=>'jy_yxw/juese7.list2//status=7','title'=>'已进入试用'),
					array('url'=>'jy_yxw/juese7.list//status=32','title'=>'退回跟进中'),
				)),
			)),
			
		);
		$iszhuguan=$this->model('model')->iszhuguan(7);
		if($iszhuguan){
			$menus[0]['child'][0]['child'][]=array('url'=>'jy_yxw/countsall.tingdata//ismy=1','title'=>'体验转化率');
		}
		return $menus;
	}
	/*
		试用员
	*/
	public function juese8_menus(){
		$menus =array(
			array('title'=>'试用数据','fa'=>'icon-zhifeiji','url'=>'jy_yxw/juese8.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/juese8.index/','title'=>'概况'),
					array('url'=>'jy_yxw/counts.data6to8/','title'=>'销售员试用率'),
				)),
				array('title'=>'试用','child'=>array(
					array('url'=>'jy_yxw/juese8.list//status=all','title'=>'全部客户'),
					array('url'=>'jy_yxw/juese8.list2//status=7','title'=>'待试用'),
					array('url'=>'jy_yxw/juese8.list2//status=41','title'=>'试用中'),
					array('url'=>'jy_yxw/juese8.list//sxuefail=1','title'=>'无效试用'),
					array('url'=>'jy_yxw/juese8.list//sxueliu=1','title'=>'试用流失'),
					array('url'=>'jy_yxw/juese8.list2//status=10','title'=>'已成交用户'),
					array('url'=>'jy_yxw/juese8.list//status=32','title'=>'退回跟进中'),
				)),
			)),
			
		);
		$iszhuguan=$this->model('model')->iszhuguan(8);
		if($iszhuguan){
			$menus[0]['child'][0]['child'][]=array('url'=>'jy_yxw/countsall.xuedata//ismy=1','title'=>'试用转化率');
		}
		return $menus;
	}
	/*
		售后助理员
	*/
	public function juese9_menus(){
		$menus =array(
			array('title'=>'概况','fa'=>'icon-zhifeiji','url'=>'jy_yxw/juese9.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/juese9.index/','title'=>'概况'),
				)),
			)),
			array('title'=>'待分售后用户','fa'=>'icon-zhifeiji','url'=>'jy_yxw/shouhou.member/','child'=>array(
				array('title'=>'待分售后用户','child'=>array(
					array('url'=>'jy_yxw/shouhou.member/','title'=>'待分售后用户'),
				)),
			)),
			array('title'=>'负责的售后群','fa'=>'icon-zhifeiji','url'=>'jy_yxw/shouhou.myclass//status=all','child'=>array(
				array('title'=>'售后群列表','child'=>array(
					array('url'=>'jy_yxw/shouhou.myclass//status=all','title'=>'售后群'),
				)),
			)),
			array('title'=>'项目管理','fa'=>'icon-changjing','url'=>'jy_yxw/shouhou.fuwu/','child'=>array(
				array('title'=>'项目管理','child'=>array(
					array('url'=>'jy_yxw/shouhou.fuwu/','title'=>'使用大纲'),
					array('url'=>'jy_yxw/shouhou.kejian/','title'=>'使用项目'),
					array('url'=>'jy_yxw/shouhou.anli/','title'=>'案例库'),
					array('url'=>'jy_yxw/shouhou.sucai/','title'=>'素材库'),
					array('url'=>'jy_yxw/shouhou.kaoti/','title'=>'考题库'),
				)),
			)),
			array('title'=>'口碑情况','fa'=>'icon-pinpai','url'=>'jy_yxw/shouhou.koubei/','child'=>array(
				array('title'=>'口碑情况','show'=>true,'child'=>array(
					array('url'=>'jy_yxw/shouhou.koubei/','title'=>'口碑意向量'),
					array('url'=>'jy_yxw/shouhou.koubeibao/','title'=>'口碑成交'),
					array('url'=>'jy_yxw/shouhou.koubeirank/','title'=>'售后口碑排行'),
					array('url'=>'jy_yxw/shouhou.koubeirank2/','title'=>'员工口碑排行'),
				)),
			)),
			array('title'=>'问卷管理','fa'=>'icon-quanbudingdan','url'=>'jy_yxw/shouhou.diaoca_list/','child'=>array(
				array('title'=>'问卷管理','show'=>true,'child'=>array(
					array('url'=>'jy_yxw/shouhou.diaoca_list/','title'=>'问卷列表'),
					array('url'=>'jy_yxw/shouhou.diaoca_tiku//tiku_type=1','title'=>'售后题库列表'),
					array('url'=>'jy_yxw/shouhou.diaoca_tiku//tiku_type=2','title'=>'售后主管题库列表'),
				)),
			)),
			
		);
		return $menus;
	}
	/*
		售后技术员
	*/
	public function juese10_menus(){
		$menus =$this->juese9_menus();
		return $menus;
	}
	/*
		售后主管
	*/
	public function juese11_menus(){
		$menus =$this->juese9_menus();
		return $menus;
	}
	/*
		反馈员
	*/
	public function juese12_menus(){
		$menus =array(
			array('title'=>'售后部','fa'=>'icon-zhifeiji','url'=>'jy_yxw/juese12.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/juese12.index/','title'=>'概况'),
				)),
			)),
			array('title'=>'负责的售后群','fa'=>'icon-zhifeiji','url'=>'jy_yxw/shouhou.myclass2//status=all','child'=>array(
				array('title'=>'售后群','child'=>array(
					array('url'=>'jy_yxw/shouhou.myclass2//status=all','title'=>'售后群'),
				)),
			)),
			
		);
		return $menus;
	}
	/*
		电审员
	*/
	public function juese13_menus(){
		$menus =array(
			array('title'=>'电审部','fa'=>'icon-zhifeiji','url'=>'jy_yxw/juese13.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/juese13.index/','title'=>'概况'),
				)),
			)),
			array('title'=>'电审','fa'=>'icon-zhifeiji','url'=>'jy_yxw/juese13.list//isdian=0','child'=>array(
				array('title'=>'电审回访','child'=>array(
					array('url'=>'jy_yxw/juese13.list//isdian=0','title'=>'待电审用户'),
					array('url'=>'jy_yxw/juese13.list//isdian=1','title'=>'已电审用户'),
				)),
				array('title'=>'满意度','child'=>array(
					array('url'=>'jy_yxw/juese13.diaoca_list/','title'=>'问卷列表'),
					array('url'=>'jy_yxw/juese13.diaoca_log//type=1','title'=>'售后满意度'),
					array('url'=>'jy_yxw/juese13.diaoca_log//type=2','title'=>'售后主管满意度'),
				)),
			)),
			
		);
		return $menus;
	}
	/*
		出纳
	*/
	public function juese14_menus(){
		$menus =array(
			array('title'=>'出纳数据','fa'=>'icon-zhifeiji','url'=>'jy_yxw/juese14.index/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/juese14.index/','title'=>'概况'),
				)),
				array('title'=>'收支明细','child'=>array(
					array('url'=>'jy_yxw/juese14.in//juese=14','title'=>'收费进账'),
				)),
				array('title'=>'待办款项','child'=>array(
					array('url'=>'jy_yxw/juese14.infee_log//type=1','title'=>'成交收款'),
					array('url'=>'jy_yxw/juese14.infee_log//type=2','title'=>'定金收款'),
					array('url'=>'jy_yxw/juese14.fenfee_log//status=6','title'=>'应收账款'),
					array('url'=>'jy_yxw/juese14.fenfee_log//status=1','title'=>'往期账款'),
					array('url'=>'jy_yxw/juese14.fenfee_log/','title'=>'后期账款'),
				)),
				array('title'=>'退费审批','child'=>array(
					array('url'=>'jy_yxw/juese14.tuifee//status=1','title'=>'待审批'),
					array('url'=>'jy_yxw/juese14.tuifee//status=4','title'=>'已审批'),
					array('url'=>'jy_yxw/juese14.tuifee//status=3','title'=>'审批不通过'),
					array('url'=>'jy_yxw/juese14.tuifee//status=5','title'=>'退费异常'),
				)),
			)),
			
		);
		return $menus;
	}
	/*
		会计
	*/
	public function juese17_menus(){
		$menus =array(
			array('title'=>'会计数据','fa'=>'icon-zhifeiji','url'=>'jy_yxw/juese14.in//juese=17','child'=>array(
				array('title'=>'成交总表','child'=>array(
					array('url'=>'jy_yxw/juese14.in//juese=17','title'=>'成交总表'),
				)),
				array('title'=>'实体门店销售','child'=>array(
					array('url'=>'jy_yxw/countsall.inall/list/','title'=>'实体门店总业绩'),
					array('url'=>'jy_yxw/countsall.juese6data//iswang=0','title'=>'销售员排名'),
					array('url'=>'jy_yxw/countsall.juese5data//iswang=0','title'=>'电客排名'),
					array('url'=>'jy_yxw/countsall.tingdata//iswang=0','title'=>'体验排名'),
					array('url'=>'jy_yxw/countsall.xuedata//iswang=0','title'=>'试用排名'),
				)),
				array('title'=>'网络门店销售','child'=>array(
					array('url'=>'jy_yxw/countsall.inall/list2/','title'=>'网络门店总业绩'),
					array('url'=>'jy_yxw/countsall.juese6data//iswang=1','title'=>'销售员排名'),
					array('url'=>'jy_yxw/countsall.juese5data//iswang=1','title'=>'电客排名'),
					array('url'=>'jy_yxw/countsall.tingdata//iswang=1','title'=>'体验排名'),
					array('url'=>'jy_yxw/countsall.xuedata//iswang=1','title'=>'试用排名'),
				)),
				array('title'=>'售后基地排名','child'=>array(
					array('url'=>'jy_yxw/countsall.inall/list3/','title'=>'售后门店总业绩'),
					array('url'=>'jy_yxw/countsall.koubeirank/','title'=>'口碑销售排名'),
				)),
			)),
			
		);
		return $menus;
	}
	/*
		区域经理
	*/
	public function juese15_menus0(){
		$menus =array(
			array('title'=>'门店概况','fa'=>'icon-licai','url'=>'jy_yxw/juese15.index/','nodiy'=>1,'child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/juese15.index/','title'=>'门店概况'),
				)),
			)),
			array('title'=>'我的门店','fa'=>'icon-zhifeiji','url'=>'jy_yxw/juese15.list/','child'=>array(
				array('title'=>'门店列表','child'=>array(
					array('url'=>'jy_yxw/juese15.list/','title'=>'门店列表'),
				)),
			)),
			array('title'=>'收入概况','fa'=>'icon-dixiaofei','url'=>'jy_yxw/juese14.in/','child'=>array(
				array('title'=>'总收支明细','child'=>array(
					array('url'=>'jy_yxw/juese14.in/','title'=>'收入'),
					array('url'=>'jy_yxw/juese14.out/','title'=>'支出'),
				)),
				array('title'=>'门店收支','child'=>array(
					array('url'=>'jy_yxw/juese14.inall/','title'=>'门店总业绩'),
					array('url'=>'jy_yxw/juese14.inday/','title'=>'门店日收入'),
					array('url'=>'jy_yxw/juese14.inmonth/','title'=>'门店月收入'),
					array('url'=>'jy_yxw/juese14.juese6rank/','title'=>'销售员排名'),
					array('url'=>'jy_yxw/juese14.juese5rank/','title'=>'电客师排名'),
				)),
				array('title'=>'售后成本','child'=>array(
					array('url'=>'jy_yxw/juese14.shouban/','title'=>'用户售后成本'),
				)),
				array('title'=>'退费审批','child'=>array(
					array('url'=>'jy_yxw/juese14.tuifee//status=1','title'=>'待审批'),
					array('url'=>'jy_yxw/juese14.tuifee//status=4','title'=>'已审批'),
					array('url'=>'jy_yxw/juese14.tuifee//status=3','title'=>'审批不通过'),
					array('url'=>'jy_yxw/juese14.tuifee//status=5','title'=>'退费异常'),
				)),
			)),
			array('title'=>'销售概况','fa'=>'icon-zhifeiji','url'=>'jy_yxw/countsall.fromdata/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/countsall.fromdata/','title'=>'渠道转化率'),
					array('url'=>'jy_yxw/countsall.juese5data/','title'=>'电客转化率'),
					array('url'=>'jy_yxw/countsall.juese6data/','title'=>'销售员总转化率'),
					array('url'=>'jy_yxw/countsall.juese6data1/','title'=>'销售员实体转化率'),
					array('url'=>'jy_yxw/countsall.juese6data2/','title'=>'销售员网络转化率'),
				)),
			)),
			array('title'=>'客户池','fa'=>'icon-licai','url'=>'jy_yxw/juese15.mindex/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/juese15.mindex/','title'=>'概况'),
				)),
				array('title'=>'按级别','child'=>array(
					array('url'=>'jy_yxw/juese15.mlist//jibie_type=all','title'=>'全量客户'),
					array('url'=>'jy_yxw/juese15.mlist//jibie_type=0','title'=>'待归类'),
					array('url'=>'jy_yxw/juese15.mlist//jibie_type=1','title'=>'A类客户'),
					array('url'=>'jy_yxw/juese15.mlist//jibie_type=2','title'=>'B类客户'),
					array('url'=>'jy_yxw/juese15.mlist//jibie_type=3','title'=>'C类客户'),
					array('url'=>'jy_yxw/juese15.mlist//jibie_type=4','title'=>'D类客户'),
					array('url'=>'jy_yxw/juese15.mlist//jibie_type=5','title'=>'无效客户'),
				)),
				array('title'=>'按渠道','child'=>array(
					array('url'=>'jy_yxw/juese15.fromlist//from_type=1','title'=>'线下来源渠道'),
					array('url'=>'jy_yxw/juese15.fromlist//from_type=2','title'=>'网络来源渠道'),
				)),
				array('title'=>'按进度','child'=>array(
					array('url'=>'jy_yxw/juese15.jindulist//status=0','title'=>'初入客户'),
					array('url'=>'jy_yxw/juese15.jindulist//status=1','title'=>'待电客'),
					array('url'=>'jy_yxw/juese15.jindulist//status=2','title'=>'跟进中'),
					array('url'=>'jy_yxw/juese15.jindulist//status=3','title'=>'准意向'),
					array('url'=>'jy_yxw/juese15.jindulist//status=4','title'=>'已意向'),
					array('url'=>'jy_yxw/juese15.jindulist//status=5','title'=>'待体验'),
					array('url'=>'jy_yxw/juese15.jindulist//status=6','title'=>'已体验'),
					array('url'=>'jy_yxw/juese15.jindulist//status=7','title'=>'待体用'),
					array('url'=>'jy_yxw/juese15.jindulist//status=8','title'=>'已体用'),
				)),
			)),
			array('title'=>'售后池','fa'=>'icon-paihao0','url'=>'jy_yxw/juese15.xindex/','child'=>array(
				array('title'=>'概况','child'=>array(
					array('url'=>'jy_yxw/juese15.xindex/','title'=>'概况'),
				)),
				array('title'=>'售后群','child'=>array(
					array('url'=>'jy_yxw/juese15.class/','title'=>'售后群'),
					array('url'=>'jy_yxw/juese15.weiji/','title'=>'违纪情况'),
				)),
				array('title'=>'按门店','child'=>array(
					array('url'=>'jy_yxw/juese15.storedata/','title'=>'门店概况'),
				)),
				array('title'=>'按反馈','child'=>array(
					array('url'=>'jy_yxw/juese15.xlist//status=all','title'=>'全部用户'),
					array('url'=>'jy_yxw/juese15.xlist//status=13','title'=>'待反馈用户'),
					array('url'=>'jy_yxw/juese15.xlist//status=14','title'=>'已反馈用户'),
					array('url'=>'jy_yxw/juese15.xlist//status=15','title'=>'异常反馈'),
					array('url'=>'jy_yxw/juese15.xlist//status=16','title'=>'超期反馈'),
				)),
			)),
			
		);
		return $menus;
	}
	public function juese15_menus(){
		$menus =$this->juese1_menus();
		$menus[]=array('title'=>'切换门店','fa'=>'icon-zhifeiji','url'=>'jy_yxw/juese15.list/','child'=>array(
				array('title'=>'门店列表','child'=>array(
					array('url'=>'jy_yxw/juese15.list/','title'=>'门店列表'),
				)),
		));
		return $menus;
	}
	/*
		财务主管
	*/
	public function juese16_menus(){
		$menus =array();
		$menus[]=$this->juese14_menus()[0];
		$menus[]=$this->juese17_menus()[0];
		return $menus;
	}
	/*
		人事
	*/
	public function role19_menus(){
		$menus =array(
			array('title'=>'员工管理','fa'=>'icon-zhifeiji','url'=>'jy_yxw/worker.listall/','child'=>array(
				array('title'=>'员工','child'=>array(
					array('url'=>'jy_yxw/worker.listall/','title'=>'全部员工'),
				)),
				array('title'=>'角色','child'=>array(
					array('url'=>'jy_yxw/worker.liststore//role=4','title'=>'客服文员'),
					array('url'=>'jy_yxw/worker.liststore//role=5','title'=>'电话客服'),
					array('url'=>'jy_yxw/worker.liststore//role=6','title'=>'销售员'),
					array('url'=>'jy_yxw/worker.liststore//role=7','title'=>'体验师'),
					array('url'=>'jy_yxw/worker.liststore//role=8','title'=>'试用师'),
					array('url'=>'jy_yxw/worker.liststore//role=9','title'=>'售后助理'),
					array('url'=>'jy_yxw/worker.liststore//role=10','title'=>'售后技术'),
					array('url'=>'jy_yxw/worker.liststore//role=11','title'=>'售后主管'),
					array('url'=>'jy_yxw/worker.liststore//role=12','title'=>'售后反馈'),
				)),
			)),
		);
		return $menus;
	}
	public function class_menus(){
		$menus =array(
			'title'=>'本售后群用户','fa'=>'icon-zhifeiji','url'=>'jy_yxw/yonghu.danganlist/fromclass/status=all','child'=>array(
				array('title'=>'本售后群用户','show'=>true,'child'=>array(
					array('url'=>'jy_yxw/yonghu.danganlist/fromclass/status=all','title'=>'用户档案'),
					array('url'=>'jy_yxw/yonghu.jiaojie/','title'=>'用户交接表'),
					array('url'=>'jy_yxw/yonghu.hetongfile/','title'=>'用户合同协议'),
					array('url'=>'jy_yxw/yonghu.fankuifile/','title'=>'用户反馈资料'),
					array('url'=>'jy_yxw/yonghu.tuifile/','title'=>'用户转退资料'),
				)),
				array('title'=>'售后群满意度','show'=>true,'child'=>array(
					array('url'=>'jy_yxw/yonghu.diaoca_log//type=1','title'=>'售后满意度'),
					array('url'=>'jy_yxw/yonghu.diaoca_log//type=2','title'=>'售后主管满意度'),
				)),
				array('title'=>'售后访谈','show'=>true,'child'=>array(
					array('url'=>'jy_yxw/yonghu.fangtan//type=0','title'=>'售后访谈'),
					array('url'=>'jy_yxw/yonghu.fangtan//type=1','title'=>'反馈访谈'),
				)),
				array('title'=>'反馈管理','show'=>true,'child'=>array(
					array('url'=>'jy_yxw/yonghu.list//status=13','title'=>'待反馈用户'),
					array('url'=>'jy_yxw/yonghu.list//status=14','title'=>'已反馈用户'),
					array('url'=>'jy_yxw/yonghu.list//status=15','title'=>'异常反馈'),
					array('url'=>'jy_yxw/fankui.list//status=16','title'=>'超期反馈'),
				)),
		));
		return $menus;
	}
	public function class_fankuimenus(){
		$menus =array(
			'title'=>'本售后群用户','fa'=>'icon-zhifeiji','url'=>'jy_yxw/fankui.list/fromclass/status=all','child'=>array(
				array('title'=>'反馈管理','show'=>true,'child'=>array(
					array('url'=>'jy_yxw/fankui.list/fromclass/status=all','title'=>'用户列表'),
					array('url'=>'jy_yxw/fankui.list//status=13','title'=>'待反馈用户'),
					array('url'=>'jy_yxw/fankui.list//status=14','title'=>'已反馈用户'),
					array('url'=>'jy_yxw/fankui.list//status=15','title'=>'异常反馈'),
					array('url'=>'jy_yxw/fankui.list//status=16','title'=>'超期反馈'),
				)),
		));
		return $menus;
	}
	public function getmenus($menus=array(),$juese=0){
		$jueses=pdo_getcolumn('jy_yxw_worker',array('uniacid'=>$_SESSION['uniacid'],'id'=>$_SESSION['workerid']),'jueses');
		$jueses=str_array($jueses);
		if($juese!=1 && $juese!=2  && $juese!=15 && $juese!=18){
			$mymenus=$menus;
		}
		foreach($jueses as $wvjuese){
			if($wvjuese!=$juese){
				if($wvjuese==1){
					$menus=$this->juese1_menus();
					if($mymenus[0]){
						$menus[]=$mymenus[0];
					}
				}elseif($wvjuese==4){
					$menus[]=$this->juese3_menus()[0];
				}elseif($wvjuese==5){
					$menus[]=$this->juese5_menus()[0];
				}elseif($wvjuese==6){
					$menus[]=$this->juese6_menus()[0];
				}elseif($wvjuese==7){
					$menus[]=$this->juese7_menus()[0];
				}elseif($wvjuese==8){
					$menus[]=$this->juese8_menus()[0];
				}elseif($wvjuese==13){
					$menus[]=$this->juese13_menus()[0];
				}elseif($wvjuese==14){
					$menus[]=$this->juese14_menus()[0];
				}elseif($wvjuese==17){
					$menus[]=$this->juese17_menus()[0];
				}
			}
		}
		return $menus;
	}
}
?>